package com.jingyanzi.resallocation.client;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jingyanzi.resallocation.result.ResultSupport;
import com.jingyanzi.resallocation.domain.StoreDO;
import com.jingyanzi.resallocation.result.ResultDO;
import com.jingyanzi.resallocation.service.IStoreService;
@RestController
@RequestMapping("/api")
public class StoreClientImpl implements StoreClientAPI {
	@Autowired
	private IStoreService storeService;

	@Override
	@RequestMapping("/store/{id}")
	public StoreDO get(Integer id) {
		ResultDO result = storeService.get(id);
		return (StoreDO) result.getModel(ResultSupport.FIRST_MODEL_KEY);
	}

	@Override
	public List<StoreDO> query() {
		// TODO Auto-generated method stub
		return null;
	}

}
